package com.study_online.domain;/*
    张昊（java文件）
    用户评论的实体类
*/


import java.util.List;

public class Comment {
    private int commentId;//评论id
    private int vidoId;//视频id
    private int userId;//user_id
    private String text;//评论内容
    private String updataTime;//修改时间
    private String addTime;//添加时间
    private List<CommentBelonging> commentBelonging;

    public Comment() {
    }

    public Comment(int commentId, int vidoId, int userId, String text, String updataTime, String addTime, List<CommentBelonging> commentBelonging) {
        this.commentId = commentId;
        this.vidoId = vidoId;
        this.userId = userId;
        this.text = text;
        this.updataTime = updataTime;
        this.addTime = addTime;
        this.commentBelonging = commentBelonging;
    }

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public int getVidoId() {
        return vidoId;
    }

    public void setVidoId(int vidoId) {
        this.vidoId = vidoId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getUpdataTime() {
        return updataTime;
    }

    public void setUpdataTime(String updataTime) {
        this.updataTime = updataTime;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public List<CommentBelonging> getCommentBelonging() {
        return commentBelonging;
    }

    public void setCommentBelonging(List<CommentBelonging> commentBelonging) {
        this.commentBelonging = commentBelonging;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", vidoId=" + vidoId +
                ", userId=" + userId +
                ", text='" + text + '\'' +
                ", updataTime='" + updataTime + '\'' +
                ", addTime='" + addTime + '\'' +
                ", commentBelonging=" + commentBelonging +
                '}';
    }
}
